﻿<form method="get" class="form-horizontal">
	<div class="form-group">
		<label class="col-sm-3 col-sm-offset-1 control-label">发送个数</label>
		<div class="col-sm-7">
			<div><input type="text" id="fenSiNum" class="fenSiNum" name="search1" value="" /></div>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-3 col-sm-offset-1 control-label">翻几页</label>
		<div class="col-sm-7">
			<div><input type="text" id="fanyeNum" class="fanyeNum" name="search1" value="" /></div>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-3 col-sm-offset-1 control-label">等待时间(秒)</label>
		<div class="col-sm-7">
			<div><input type="text" id="waitingTime" class="waitingTime" name="search1" value="" /></div>
		</div>
	</div>
</form>


<script>
    function btn_select_manage() {
        var fenSiNum = document.getElementById("fenSiNum").value;
        var waitingTime = document.getElementById("waitingTime").value;
        var fanyeNum = document.getElementById("fanyeNum").value;
        <!-- var searchResult = search1.split("||"); -->
        if (fenSiNum == "") {
            toastr.warning("关注个数不能为空");
        } else if (fanyeNum == "") {
            toastr.warning("翻页数不能为空");
        } else if (waitingTime == "" ) {
            toastr.warning("等待时间不能为空");
        } else if(!/^[0-9]*$/.test(fenSiNum)){
            toastr.warning("关注个数只能输入数字!");
            return false;
        }else if(!/^[0-9]*$/.test(fanyeNum)){
            toastr.warning("翻页数只能输入数字!");
            return false;
        }else if(!/^[0-9]*$/.test(waitingTime)){
            toastr.warning("等待时间只能输入数字!");
            return false;
        }else {
            var json = {"fenSiNum":fenSiNum,"fanyeNum":fanyeNum,"waitingTime":waitingTime}
            issuedData.setView(JSON.stringify(json));
            $("#select_manage").modal("hide");
            $("#btn_manage").text("抖音(好友列表发消息)插件");
            $("#btn_manage").show();
            $("#btn_manage").prev().show();
            $("#btn_manage").prev().prev().hide();
            Color.success("state_manage");
        }
    }

</script>